//
//  VKConfigDataModel.m
//  trongvm
//
//  Created by Tai Truong on 12/12/12.
//
//

#import "VKConfigDataModel.h"

static NSString* const DeviceTokenKey = @"DeviceToken";
@implementation VKConfigDataModel
@synthesize deviceToken = _deviceToken;

-(id)init
{
    if (self = [super init]) {
        [[NSUserDefaults standardUserDefaults] registerDefaults:
         [NSDictionary dictionaryWithObjectsAndKeys:
          @"", DeviceTokenKey,
          nil]];
    }
    return self;
}

-(void)setDeviceToken:(NSString *)deviceToken
{
    [[NSUserDefaults standardUserDefaults] setValue:deviceToken forKey:DeviceTokenKey];
}

-(NSString *)deviceToken
{
    return [[NSUserDefaults standardUserDefaults] stringForKey:DeviceTokenKey];
}
@end
